package com.CST.mapper.cst;

import com.CST.dto.DateDTO;
import com.CST.entity.EtlSalary;
import com.CST.vo.SalaryDetailByAccIdVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2022-01-24
 */
@Repository
public interface EtlSalaryMapper extends BaseMapper<EtlSalary> {
    //薪酬数据
    List<EtlSalary> getEtlSalarySource(EtlSalary entity);

    //薪酬数据(门诊和住院)
    List<EtlSalary> getEtlDeptSalarySource(EtlSalary entity);

    /**
     * 获取所有父级科室的各个账套的总额
     * 注意：根据账套id分组
     */
    List<SalaryDetailByAccIdVO> listPersonalSalaryDetail(@Param("dateDTO") DateDTO dateDTO,
                                                         @Param("pDeptCode") String pDeptCode);


}
